//
//  Match.swift
//  JTYP
//
//  Created by Groot on 2017/12/12.
//  Copyright © 2017年 inspur. All rights reserved.
//

import ObjectMapper


class Match: Mappable {
    
    required init?(map: Map) {
    }
    
    func mapping(map: Map) {
        actualenrollment  <- map["actualenrollment"]
        alert             <- map["alert"]
        autostart         <- map["autostart"]
        autostartname     <- map["autostartname"]
        changer           <- map["changer"]
        changername       <- map["changername"]
        changetime        <- map["changetime"]
        competitors       <- map["competitors"]
        creater           <- map["creater"]
        creatername       <- map["creatername"]
        createtime        <- map["createtime"]
        deptid            <- map["deptid"]
        deptname          <- map["deptname"]
        endtime           <- map["endtime"]
        enroollendtime    <- map["enroollendtime"]
        enroollstarttime  <- map["enroollstarttime"]
        global            <- map["global"]
        globalname        <- map["globalname"]
        id                <- map["id"]
        mode              <- map["mode"]
        modename          <- map["modename"]
        name              <- map["name"]
        note              <- map["note"]
        picture           <- map["picture"]
        pictures          <- map["pictures"]
        plannedenrollment <- map["plannedenrollment"]
        profession        <- map["profession"]
        professionname    <- map["professionname"]
        retire            <- map["retire"]
        retirename        <- map["retirename"]
        sex               <- map["sex"]
        sexname           <- map["sexname"]
        starttime         <- map["starttime"]
        status            <- map["status"]
        statusname        <- map["statusname"]
        type              <- map["type"]
        typename          <- map["typename"]
    }
    
    var actualenrollment: Int?
    var alert: Int?
    var autostart: Int?
    var autostartname: String?
    var changer: Int?
    var changername: String?
    var changetime: String?
    var competitors: [Competitor]?
    var creater: Int?
    var creatername: String?
    var createtime: String?
    var deptid: Int?
    var deptname: String?
    var endtime: String?
    var enroollendtime: String?
    var enroollstarttime: String?
    var global: Int?
    var globalname: String?
    var id: Int?
    var mode: Int?
    var modename: String?
    var name: String?
    var note: String?
    var picture: String?
    var pictures: [Picture]?
    var plannedenrollment: Int?
    var profession: Int?
    var professionname: String?
    var retire: Int?
    var retirename: String?
    var sex: Int?
    var sexname: String?
    var starttime: String?
    var status: Int?
    var statusname: String?
    var type: Int?
    var typename: String?
}


class Competitor: Mappable {
    
    required init?(map: Map) {
    }
    
    func mapping(map: Map) {
        birthday        <- map["birthday"]
        deptid          <- map["deptid"]
        deptname        <- map["deptname"]
        enroll          <- map["enroll"]
        enrollname      <- map["enrollname"]
        enrolltime      <- map["enrolltime"]
        id              <- map["id"]
        photo           <- map["photo"]
        photourl        <- map["photourl"]
        profession      <- map["profession"]
        professionname  <- map["professionname"]
        retire          <- map["retire"]
        retirename      <- map["retirename"]
        sex             <- map["sex"]
        sexname         <- map["sexname"]
        sportsid        <- map["sportsid"]
        sportsname      <- map["sportsname"]
        step            <- map["step"]
        unenrolltime    <- map["unenrolltime"]
        userid          <- map["userid"]
        username        <- map["username"]
    }

    var birthday: String?
    var deptid: Int?
    var deptname: String?
    var enroll: Int?
    var enrollname: String?
    var enrolltime: String?
    var id: Int?
    var photo: Int?
    var photourl: String?
    var profession: Int?
    var professionname: String?
    var retire: Int?
    var retirename: String?
    var sex: Int?
    var sexname: String?
    var sportsid: Int?
    var sportsname: String?
    var step: Int?
    var unenrolltime: String?
    var userid: Int?
    var username: String?
    
    
}

